package com.framework.shs.commom.quartz;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

/**
 * 调度器实现定时任务,定时每天(0点)清除用户的下载次数
 * @author baoyt
 * 
 */
public class DownloadQuartz implements ApplicationContextAware {
	private ApplicationContext context;// 声明一个变量保存

	public void cleanDownload() {
		System.out.println(context);
	}

	@Override
	public void setApplicationContext(ApplicationContext applicationContext)
			throws BeansException {
		this.context = applicationContext;
	}
}
